package Work4.Slay_the_Maze.Cards;

import java.util.Random;
import java.util.ArrayList;
import Work4.Slay_the_Maze.Cards.*;
import Work4.Slay_the_Maze.Events.BattleEvent;
import Work4.Slay_the_Maze.Events.ChooseEvent1;
import Work4.Slay_the_Maze.Events.RestEvent;
import Work4.Slay_the_Maze.Events.Shop;
import Work4.Slay_the_Maze.Events.TreasureEvent;

public class CardsPool {
	private ArrayList<Cards> cardspool=new ArrayList<Cards>();
	public CardsPool(){
		cardspool.add(new attack());
		cardspool.add(new defense());
		cardspool.add(new tiezhanbo());
		//cardspool.add(new Shop());
		//cardspool.add(new TreasureEvent());
	}
	public ArrayList<Cards> getCardspool() {
		return cardspool;
	}
	public void setCardspool(ArrayList<Cards> cardspool) {
		this.cardspool = cardspool;
	}
	public void addCard(Cards card) {
		cardspool.add(card);
	}
	public Cards RandomgetCard() {
		Random rd=new Random();
		return cardspool.get(rd.nextInt(cardspool.size()));
	}
}
